package com.example.mybatisplus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplus.model.domain.BuildingManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mybatisplus.model.dto.PageDTO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p >
 *
 * @author ablbb
 * @since 2024-07-19
 */
public interface BuildingManagementService extends IService<BuildingManagement> {

    Page<BuildingManagement> pageList(BuildingManagement buildingManagement, PageDTO dto);

    void importbuilding(MultipartFile file) throws IOException;

    void updateTotalRoomsForBuilding(String buildingId);

    int getTotalRoomsForBuilding(String buildingId);

}
